﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Class_Entity;
using DataAccess;
using System.Data;

namespace BussinessObject
{
    public class BOUsers
    {

        public DataSet LoginAccounts(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Login_Accounts(us);
        }

        //-----------------------------------------------------------------------------------

        public bool Add_Users(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Add_Users(us);
        }

        //-----------------------------------------------------------------------------------

        public bool Add_Admins(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Add_Admins(us);
        }

        //-----------------------------------------------------------------------------------

        public bool Edit_Users(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Edit_Users(us);
        }
        //-----------------------------------------------------------------------------------

        public bool Edit_UserPassword(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Edit_UserPassword(us);
        }
        //-----------------------------------------------------------------------------------

        public bool Edit_UserRoleCode(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Edit_UserRoleCode(us);
        }

        //-----------------------------------------------------------------------------------

        public bool Delete_Users(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Delete_User(us);
        }

        //-----------------------------------------------------------------------------------

        public DataSet Find_UserByUsername(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Find_UserByUsername(us);
        }

        //-----------------------------------------------------------------------------------

        public DataSet Find_UserByFullname(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Find_UserByFullname(us);
        }

        //-----------------------------------------------------------------------------------

        public DataSet Load_Users(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Load_Users(us);
        }

        //-----------------------------------------------------------------------------------

        public DataSet Load_Roles(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Load_Roles(us);
        }

        //-----------------------------------------------------------------------------------

        public DataSet Load_AdminAccounts(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Load_AdminAccounts(us);
        }

        //-----------------------------------------------------------------------------------

        public DataSet Load_UserDetail(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Load_UserDetail(us);
        }
        //-----------------------------------------------------------------------------------

        public bool Add_CVurl(Users us)
        {
            DAUsers user = new DAUsers();
            return user.Add_CVurl(us);
        }
    }
}
